package com.tbit.uqbike.service.business;

import com.tbit.uqbike.object.pojo.MachineBatteryBound;

import java.util.List;

/**
 * 车辆电池绑定表(MachineBatteryBound)表服务接口
 *
 * @author jing
 * @since 2020-12-04 10:32:13
 */
public interface MachineBatteryBoundService {

    /**
     * 通过ID查询单条数据
     *
     * @param machineBatteryBoundId 主键
     * @return 实例对象
     */
    MachineBatteryBound queryById(Integer machineBatteryBoundId);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<MachineBatteryBound> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param machineBatteryBound 实例对象
     * @return 实例对象
     */
    MachineBatteryBound insert(MachineBatteryBound machineBatteryBound);

    /**
     * 修改数据
     *
     * @param machineBatteryBound 实例对象
     * @return 实例对象
     */
    MachineBatteryBound update(MachineBatteryBound machineBatteryBound);

    /**
     * 通过主键删除数据
     *
     * @param machineBatteryBoundId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer machineBatteryBoundId);


    void insertBatch(List<MachineBatteryBound> machineBatteryBounds);

    Boolean queryByUserCode(String userCode);

    List<MachineBatteryBound> queryPage(MachineBatteryBound machineBatteryBound);

    MachineBatteryBound queryByCode(String userCode);

    MachineBatteryBound queryByNO(String batteryNO);

    void deleteByUserCode(MachineBatteryBound machineBatteryBound);
}